#ifndef INPUT_H
#define INPUT_H
#include "Game.h"
#define DIRECTINPUT_VERSION 0x0800
#include <DInput.h>



class InputHandler
{
public:
	~InputHandler();
	bool InitDirectInput(); //init DirectInput
	bool InitKeyboard();  //init Keyboard
	bool Update();
	bool KeyPressed(int i); //ask for pressed key 


private:
	InputHandler();
	friend class Singleton<InputHandler>;
	LPDIRECTINPUT8 m_pDIObject; 
	LPDIRECTINPUTDEVICE8 m_pDIKeyboardDevice; //keyboard device 
	char m_KeyBuffer[256]; //buffer for keys 

};
typedef Singleton<InputHandler> TheInputHandler;
#endif